var offers = new Vue({

    el: "#offers",

    data: {
        //询价表
        offerTable: [],
        //横向菜单列表
        goodsType: [],
    },
    //提交时间方法
    methods: {
        //查看报价详细信息
        showResult: function (id) {

            $.post("/home/quotation/selectByQuoteOrCompareId", {"id": id}, function (data) {
                $("#offers").load("http://" + window.location.host + "/home/inquiryDetails.html", function () {
                    debugger
                    inquiryDetails.priceQuote = data.data.QuotationList;
                });
            });

        },
        //跳转报价单页面
        FX_Board: function (quoteOrCompare) {
            debugger
            $("#offers").load("http://" + window.location.host + "/home/quotation.html", function () {
                quotation.quoteOrCompare.name = quoteOrCompare.commodityName + "*" + quoteOrCompare.commodityNum;
                quotation.quoteOrCompare.quoteOrCompareId = quoteOrCompare.id;
                quotation.quoteOrCompare.priceCap = quoteOrCompare.priceCap;
            });
        },
    },

    //页面加载后的初始化方法
    created: function () {
        var _this = this;


        //获得菜单标签信息
        $.post("/home/quote_or_compare/selectAll", "", function (data) {
            _this.offerTable = data.data.quoteOrCompare;
        });

        //初始化横向菜单列表
        var goodsTypeList = [
            // {href: "designatedService.html", name: "定点服务", url: "#"},
            // {href: "../home/offers.html", name: "询价表", url: "#"},
            // {href: "../home/bidding.html", name: "发起询价", url: "#"},
            // {href: "../home/home.html", name: "首页", url: "#"}
        ];
        _this.goodsType = goodsTypeList;//后台动态添加进入

    }
});